<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>消费记录</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link href="${ctx }/css/style.css" type="text/css" rel="stylesheet" />
	</head>
	<body>
		<div>
			<div style="width: 100%; height: 30px; text-align: left;">
				当前位置：消费记录
			</div>
			<div
				style="width: 100%; background-color: #EDDEA0; height: 30px; border: 1px solid gray;">
				<b>您 的 购 物 记 录</b>
			</div>

			<div style="width: 100%; background-color: #FBF7E6">
				<div>
					<table cellspacing="2" cellpadding="3" border="1" style="background-color:#DEBA84;border-color:#DEBA84;border-width:1px;border-style:None;width:100%;">
						<thead>
							<tr style="color:White;background-color:#A55129;font-weight:bold; font-size: 11px;">
								<th style="width: 15%">物品名称</th>
								<th>面值(元)</th>
								<th style="width: 20%">卡号</th>
								<th style="width: 15%">密码</th>
								<th style="width: 15%">购物日期</th>
							</tr>
						</thead>
						<tbody>
							<s:if test="products.size() == 0">
								<tr style="color:#000066;background-color:#FFF7E7; font-size: 13px; text-align: center;">
									<td colspan="5">暂无记录显示！</td>
								</tr>
							</s:if>
							<s:else>
								<s:iterator value="products">
									<tr style="color:#000066;background-color:#FFF7E7; font-size: 13px;">
										<td>
											<s:property value="cardTypeName" />
										</td>
										<td>
											<s:property value="price.intValue()" />
										</td>
										<td>
											<s:property value="cardNo" />
										</td>
										<td>
											<s:property value="cardPwd" />
										</td>
										<td>
											<s:property value="shopTime" />
										</td>
									</tr>
								</s:iterator>
							</s:else>
						</tbody>
					</table>
				</div>
			</div>

		</div>
	</body>
</html>
